<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('服务商提供发票记录列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            服务商编号：
                            <input type="text" name="agentNum"/>
                        </li>
                        <li>
                            <label>发票税号：</label>
                            <input type="text" name="invoiceNumber"/>
                        </li>
                        <li>
                            <label>联系方式：</label>
                            <input type="number" name="linkPhone"/>
                        </li>
                        <li>
                            <label>申请日期：</label>
                            <input type="text" name="createDate" class="time-input"  placeholder="申请日期"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
<!--
        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="InvoiceRecord:InvoiceRecord:add">
                <i class="fa fa-plus"></i> 添加
            </a>
            <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="InvoiceRecord:InvoiceRecord:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="InvoiceRecord:InvoiceRecord:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="InvoiceRecord:InvoiceRecord:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>-->
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var fp_status = [[${@dict.getType('fp_status')}]];
    var editFlag = [[${@permission.hasPermi('InvoiceRecord:InvoiceRecord:edit')}]];
    var removeFlag = [[${@permission.hasPermi('InvoiceRecord:InvoiceRecord:remove')}]];
    var prefix = ctx + "InvoiceRecord/InvoiceRecord";

    $(function() {
        var options = {
            url: prefix + "/InvoiceRecordList",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "服务商提供发票记录",
            columns: [
                {
                    field: 'id',
                    title: '主键编号',
                    visible: false
                },
                {
                    field: 'agentNum',
                    title: '服务商编号'
                },
                {
                    field: 'invoiceTitle',
                    title: '发票抬头'
                },
                {
                    field: 'invoiceNumber',
                    title: '发票税号'
                },
                {
                    field: 'linkPhone',
                    title: '开票联系方式'
                },
                {
                    field: 'invoiceMoney',
                    title: '发票金额'
                },
                {
                    field: 'creationDate',
                    title: '抵分润税点税票时间'
                },
                {
                    field: 'creationMoney',
                    title: '分润税金额'
                },
                {
                    field: 'taxVoucher',
                    title: '税票凭证地址'
                },
                {
                    field: 'createDate',
                    title: '申请日期'
                },
                {
                    field: 'returnDate',
                    title: '分润返还时间'
                },
                {
                    field: 'invoiceContent',
                    title: '发票内容',
                    formatter:function (value, row, index) {
                        return $.table.tooltip(value,6);
                    }
                },
                {
                    field: 'status',
                    title: '状态',
                    formatter: function (value, row, index) {
                        return $.table.selectDictLabel(fp_status, value);
                    }
                },
                {
                    field: 'remarks',
                    title: '备注信息'
                }/*,
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }*/]
        };
        $.table.init(options);
    });
</script>
</body>
</html>